﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;

namespace BCDto.Sim.Company.Position
{
	/// <summary>
	/// 岗位
	/// </summary>
	public class PositionRequestDto
	{
		/// <summary>
		/// 公司Id
		/// </summary>		
		[Display(Name = "公司Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int CompanyId { get; set; }
		/// <summary>
		/// 部门Id
		/// </summary>		
		[Display(Name = "部门Id")]
		[Required(ErrorMessage = "{0} 不应为空")]
		public int DepartmentId { get; set; }
		/// <summary>
		/// 所属岗位Id
		/// </summary>		
		[Display(Name = "所属岗位Id")]
		public int? ParentPositionId { get; set; }
		/// <summary>
		/// 岗位名称
		/// </summary>		
		[Display(Name = "岗位名称")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PositionName { get; set; }
		/// <summary>
		/// 岗位编号
		/// </summary>		
		[Display(Name = "岗位编号")]
		[Required(ErrorMessage = "{0} 不应为空")]
		[StringLength(50, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PositionNo { get; set; }
		/// <summary>
		/// 岗位备注
		/// </summary>		
		[Display(Name = "岗位备注")]
		[StringLength(400, MinimumLength = 2, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
		public string PositionRemark { get; set; }
		/// <summary>
		/// 启用
		/// </summary>
		[Display(Name = "启用")]
		public bool Enabled { get; set; }
	}
}

